import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.data.distributedData.d.ts',
  content: "/*\n * Copyright (c) 2021 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ArkData\n */\nimport { AsyncCallback, Callback } from './@ohos.base';\n/**\n * Providers interfaces to creat a {@link KVManager} instance.\n *\n * @namespace distributedData\n * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n * @since 7\n * @deprecated since 9\n * @useinstead ohos.data.distributedKVStore\n */\ndeclare namespace distributedData {\n    /**\n     * Provides configuration information for {@link KVManager} instances,\n     * including the caller's package name and distributed network type.\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.KVManagerConfig\n     */\n    interface KVManagerConfig {\n        /**\n         * Indicates the user information\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        userInfo: UserInfo;\n        /**\n         * Indicates the bundleName\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVManagerConfig#bundleName\n         */\n        bundleName: string;\n    }\n    /**\n     * Manages user information.\n     *\n     * <p>This class provides methods for obtaining the user ID and type, setting the user ID and type,\n     * and checking whether two users are the same.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     */\n    interface UserInfo {\n        /**\n         * Indicates the user ID to set\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        userId?: string;\n        /**\n         * Indicates the user type to set\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        userType?: UserType;\n    }\n    /**\n     * Enumerates user types.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     */\n    enum UserType {\n        /**\n         * Indicates a user that logs in to different devices using the same account.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        SAME_USER_ID = 0\n    }\n    /**\n     * KVStore constants\n     *\n     * @namespace Constants\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.Constants\n     */\n    namespace Constants {\n        /**\n         * max key length.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Constants#MAX_KEY_LENGTH\n         */\n        const MAX_KEY_LENGTH = 1024;\n        /**\n         * max value length.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Constants#MAX_VALUE_LENGTH\n         */\n        const MAX_VALUE_LENGTH = 4194303;\n        /**\n         * max device coordinate key length.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Constants#MAX_KEY_LENGTH_DEVICEs\n         */\n        const MAX_KEY_LENGTH_DEVICE = 896;\n        /**\n         * max store id length.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Constants#MAX_STORE_ID_LENGTH\n         */\n        const MAX_STORE_ID_LENGTH = 128;\n        /**\n         * max query length.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Constants#MAX_QUERY_LENGTH\n         */\n        const MAX_QUERY_LENGTH = 512000;\n        /**\n         * max batch operation size.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Constants#MAX_BATCH_SIZE\n         */\n        const MAX_BATCH_SIZE = 128;\n    }\n    /**\n     * Indicates the {@code ValueType}.\n     *\n     * <p>{@code ValueType} is obtained based on the value.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.ValueType\n     */\n    enum ValueType {\n        /**\n         * Indicates that the value type is string.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.ValueType#STRING\n         */\n        STRING = 0,\n        /**\n         * Indicates that the value type is int.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.ValueType#INTEGER\n         */\n        INTEGER = 1,\n        /**\n         * Indicates that the value type is float.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.ValueType#FLOAT\n         */\n        FLOAT = 2,\n        /**\n         * Indicates that the value type is byte array.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.ValueType#BYTE_ARRAY\n         * */\n        BYTE_ARRAY = 3,\n        /**\n         * Indicates that the value type is boolean.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.ValueType#BOOLEAN\n         * */\n        BOOLEAN = 4,\n        /**\n         * Indicates that the value type is double.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.ValueType#DOUBLE\n         */\n        DOUBLE = 5\n    }\n    /**\n     * Obtains {@code Value} objects stored in a {@link KVStore} database.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.Value\n     */\n    interface Value {\n        /**\n         * Indicates value type\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @see ValueType\n         * @type {number}\n         * @memberof Value\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Value#type\n         */\n        type: ValueType;\n        /**\n         * Indicates value\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Value#value\n         */\n        value: Uint8Array | string | number | boolean;\n    }\n    /**\n     * Provides key-value pairs stored in the distributed database.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.Entry\n     */\n    interface Entry {\n        /**\n         * Indicates key\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Entry#key\n         */\n        key: string;\n        /**\n         * Indicates value\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Entry#value\n         */\n        value: Value;\n    }\n    /**\n     * Receives notifications of all data changes, including data insertion, update, and deletion.\n     *\n     * <p>If you have subscribed to {@code KVStore}, you will receive data change notifications and obtain the changed data\n     * from the parameters in callback methods upon data insertion, update, or deletion.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.ChangeNotification\n     */\n    interface ChangeNotification {\n        /**\n         * Indicates data addition records.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.ChangeNotification#insertEntries\n         */\n        insertEntries: Entry[];\n        /**\n         * Indicates data update records.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.ChangeNotification#updateEntries\n         */\n        updateEntries: Entry[];\n        /**\n         * Indicates data deletion records.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.ChangeNotification#deleteEntries\n         */\n        deleteEntries: Entry[];\n        /**\n         * Indicates from device id.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.ChangeNotification#deviceId\n         */\n        deviceId: string;\n    }\n    /**\n     * Indicates the database synchronization mode.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.SyncMode\n     */\n    enum SyncMode {\n        /**\n         * Indicates that data is only pulled from the remote end.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SyncMode#PULL_ONLY\n         */\n        PULL_ONLY = 0,\n        /**\n         * Indicates that data is only pushed from the local end.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SyncMode#PUSH_ONLY\n         */\n        PUSH_ONLY = 1,\n        /**\n         * Indicates that data is pushed from the local end, and then pulled from the remote end.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SyncMode#PUSH_PULL\n         */\n        PUSH_PULL = 2\n    }\n    /**\n     * Describes the subscription type.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.SubscribeType\n     */\n    enum SubscribeType {\n        /**\n         * Subscription to local data changes\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SubscribeType#SUBSCRIBE_TYPE_LOCAL\n         */\n        SUBSCRIBE_TYPE_LOCAL = 0,\n        /**\n         * Subscription to remote data changes\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SubscribeType#SUBSCRIBE_TYPE_REMOTE\n         */\n        SUBSCRIBE_TYPE_REMOTE = 1,\n        /**\n         * Subscription to both local and remote data changes\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SubscribeType#SUBSCRIBE_TYPE_ALL\n         */\n        SUBSCRIBE_TYPE_ALL = 2\n    }\n    /**\n     * Describes the {@code KVStore} type.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.KVStoreType\n     */\n    enum KVStoreType {\n        /**\n         * Device-collaboration database, as specified by {@code DeviceKVStore}\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreType#DEVICE_COLLABORATION\n         */\n        DEVICE_COLLABORATION = 0,\n        /**\n         * Single-version database, as specified by {@code SingleKVStore}\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreType#SINGLE_VERSION\n         */\n        SINGLE_VERSION = 1,\n        /**\n         * Multi-version database, as specified by {@code MultiKVStore}\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 7\n         * @deprecated since 9\n         */\n        MULTI_VERSION = 2\n    }\n    /**\n     * Describes the {@code KVStore} type.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.SecurityLevel\n     */\n    enum SecurityLevel {\n        /**\n         * NO_LEVEL: mains not set the security level.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 7\n         * @deprecated since 9\n         */\n        NO_LEVEL = 0,\n        /**\n         * S0: mains the db is public.\n         * There is no impact even if the data is leaked.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        S0 = 1,\n        /**\n         * S1: mains the db is low level security\n         * There are some low impact, when the data is leaked.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SecurityLevel#S1\n         */\n        S1 = 2,\n        /**\n         * S2: mains the db is middle level security\n         * There are some major impact, when the data is leaked.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SecurityLevel#S2\n         */\n        S2 = 3,\n        /**\n         * S3: mains the db is high level security\n         * There are some severity impact, when the data is leaked.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SecurityLevel#S3\n         */\n        S3 = 5,\n        /**\n         * S4: mains the db is critical level security\n         * There are some critical impact, when the data is leaked.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SecurityLevel#S4\n         */\n        S4 = 6\n    }\n    /**\n     * Provides configuration options for creating a {@code KVStore}.\n     *\n     * <p>You can determine whether to create another database if a {@code KVStore} database is missing,\n     * whether to encrypt the database, and the database type.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.Options\n     */\n    interface Options {\n        /**\n         * Indicates whether to create a database when the database file does not exist\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Options#createIfMissing\n         */\n        createIfMissing?: boolean;\n        /**\n         * Indicates setting whether database files are encrypted\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Options#encrypt\n         */\n        encrypt?: boolean;\n        /**\n         * Indicates setting whether to back up database files\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Options#backup\n         */\n        backup?: boolean;\n        /**\n         * Indicates setting whether database files are automatically synchronized\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Options#autoSync\n         */\n        autoSync?: boolean;\n        /**\n         * Indicates setting the database type\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Options#kvStoreType\n         */\n        kvStoreType?: KVStoreType;\n        /**\n         * Indicates setting the database security level\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Options#securityLevel\n         */\n        securityLevel?: SecurityLevel;\n        /**\n         * Indicates schema object\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Options#schema\n         */\n        schema?: Schema;\n    }\n    /**\n     * Represents the database schema.\n     *\n     * You can create Schema objects and put them in Options when creating or opening the database.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.Schema\n     */\n    class Schema {\n        /**\n         * A constructor used to create a Schema instance.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Schema#constructor\n         */\n        constructor();\n        /**\n         * Indicates the root json object.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Schema#root\n         */\n        root: FieldNode;\n        /**\n         * Indicates the string array of json.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Schema#indexes\n         */\n        indexes: Array<string>;\n        /**\n         * Indicates the mode of schema.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Schema#mode\n         */\n        mode: number;\n        /**\n         * Indicates the skip size of schema.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Schema#skip\n         */\n        skip: number;\n    }\n    /**\n     * Represents a node of a {@link Schema} instance.\n     *\n     * <p>Through the {@link Schema} instance, you can define the fields contained in the values stored in a database.\n     *\n     * <p>A FieldNode of the {@link Schema} instance is either a leaf or a non-leaf node.\n     *\n     * <p>The leaf node must have a value; the non-leaf node must have a child {@code FieldNode}.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.FieldNode\n     */\n    class FieldNode {\n        /**\n         * A constructor used to create a FieldNode instance with the specified field.\n         * name Indicates the field node name.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.FieldNode#constructor\n         */\n        constructor(name: string);\n        /**\n         * Adds a child node to this {@code FieldNode}.\n         *\n         * <p>Adding a child node makes this node a non-leaf node. Field value will be ignored if it has child node.\n         *\n         * @param child The field node to append.\n         * @returns Returns true if the child node is successfully added to this {@code FieldNode}; returns false otherwise.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.FieldNode#appendChild\n         */\n        appendChild(child: FieldNode): boolean;\n        /**\n         * Indicates the default value of field node.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.FieldNode#default\n         */\n        default: string;\n        /**\n         * Indicates the nullable of database field.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.FieldNode#nullable\n         */\n        nullable: boolean;\n        /**\n         * Indicates the type of value.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.FieldNode#type\n         */\n        type: number;\n    }\n    /**\n     * Provide methods to obtain the result set of the {@code KvStore} database.\n     *\n     * <p>The result set is created by using the {@code getResultSet} method in the {@code DeviceKVStore} class. This interface also provides\n     * methods for moving the data read position in the result set.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.KVStoreResultSet\n     */\n    interface KvStoreResultSet {\n        /**\n         * Obtains the number of lines in a result set.\n         *\n         * @returns Returns the number of lines.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#getCount\n         */\n        getCount(): number;\n        /**\n         * Obtains the current read position in a result set.\n         *\n         * @returns Returns the current read position. The read position starts with 0.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#getPosition\n         */\n        getPosition(): number;\n        /**\n         * Moves the read position to the first line.\n         *\n         * <p>If the result set is empty, false is returned.\n         *\n         * @returns Returns true if the operation succeeds; return false otherwise.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#moveToFirst\n         */\n        moveToFirst(): boolean;\n        /**\n         * Moves the read position to the last line.\n         *\n         * <p>If the result set is empty, false is returned.\n         *\n         * @returns Returns true if the operation succeeds; return false otherwise.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#moveToLast\n         */\n        moveToLast(): boolean;\n        /**\n         * Moves the read position to the next line.\n         *\n         * <p>If the result set is empty or the data in the last line is being read, false is returned.\n         *\n         * @returns Returns true if the operation succeeds; return false otherwise.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#moveToNext\n         */\n        moveToNext(): boolean;\n        /**\n         * Moves the read position to the previous line.\n         *\n         * <p>If the result set is empty or the data in the first line is being read, false is returned.\n         *\n         * @returns Returns true if the operation succeeds; return false otherwise.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#moveToPrevious\n         */\n        moveToPrevious(): boolean;\n        /**\n         * Moves the read position by a relative offset to the current position.\n         *\n         * @param offset Indicates the relative offset to the current position. A negative offset indicates moving backwards, and a\n         * positive offset indicates moving forwards. For example, if the current position is entry 1 and this offset is 2,\n         * the destination position will be entry 3; if the current position is entry 3 and this offset is -2,\n         * the destination position will be entry 1. The valid final position after moving forwards starts with 0. If the\n         * final position is invalid, false will be returned.\n         * @returns Returns true if the operation succeeds; return false otherwise.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#move\n         */\n        move(offset: number): boolean;\n        /**\n         * Moves the read position from 0 to an absolute position.\n         *\n         * @param position Indicates the absolute position.\n         * @returns Returns true if the operation succeeds; return false otherwise.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#moveToPosition\n         */\n        moveToPosition(position: number): boolean;\n        /**\n         * Checks whether the read position is the first line.\n         *\n         * @returns Returns true if the read position is the first line; returns false otherwise.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#isFirst\n         */\n        isFirst(): boolean;\n        /**\n         * Checks whether the read position is the last line.\n         *\n         * @returns Returns true if the read position is the last line; returns false otherwise.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#isLast\n         */\n        isLast(): boolean;\n        /**\n         * Checks whether the read position is before the last line.\n         *\n         * @returns Returns true if the read position is before the first line; returns false otherwise.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#isBeforeFirst\n         */\n        isBeforeFirst(): boolean;\n        /**\n         * Checks whether the read position is after the last line.\n         *\n         * @returns Returns true if the read position is after the last line; returns false otherwise.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#isAfterLast\n         */\n        isAfterLast(): boolean;\n        /**\n         * Obtains a key-value pair.\n         *\n         * @returns Returns a key-value pair.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVStoreResultSet#getEntry\n         */\n        getEntry(): Entry;\n    }\n    /**\n     * Represents a database query using a predicate.\n     *\n     * <p>This class provides a constructor used to create a {@code Query} instance, which is used to query data matching specified\n     * conditions in the database.\n     *\n     * <p>This class also provides methods for adding predicates to the {@code Query} instance.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.Query\n     */\n    class Query {\n        /**\n         * A constructor used to create a Query instance.\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#constructor\n         */\n        constructor();\n        /**\n         * Resets this {@code Query} object.\n         *\n         * @returns Returns the reset {@code Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#reset\n         */\n        reset(): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is equal to the specified long value.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param value IIndicates the long value.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#equalTo\n         */\n        equalTo(field: string, value: number | string | boolean): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is not equal to the specified int value.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param value Indicates the int value.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#notEqualTo\n         */\n        notEqualTo(field: string, value: number | string | boolean): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is greater than or equal to the\n         * specified int value.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param value Indicates the int value.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#greaterThan\n         */\n        greaterThan(field: string, value: number | string | boolean): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is less than the specified int value.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param value Indicates the int value.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#lessThan\n         */\n        lessThan(field: string, value: number | string): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is greater than or equal to the\n         * specified int value.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param value Indicates the int value.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#greaterThanOrEqualTo\n         */\n        greaterThanOrEqualTo(field: string, value: number | string): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is less than or equal to the\n         * specified int value.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param value Indicates the int value.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#lessThanOrEqualTo\n         */\n        lessThanOrEqualTo(field: string, value: number | string): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is null.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#isNull\n         */\n        isNull(field: string): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is within the specified int value list.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param valueList Indicates the int value list.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#inNumber\n         */\n        inNumber(field: string, valueList: number[]): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is within the specified string value list.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param valueList Indicates the string value list.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#inString\n         */\n        inString(field: string, valueList: string[]): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is not within the specified int value list.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param valueList Indicates the int value list.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#notInNumber\n         */\n        notInNumber(field: string, valueList: number[]): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is not within the specified string value list.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param valueList Indicates the string value list.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#notInString\n         */\n        notInString(field: string, valueList: string[]): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is similar to the specified string value.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param value Indicates the string value.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#like\n         */\n        like(field: string, value: string): Query;\n        /**\n         * Constructs a {@code Query} object to query entries with the specified field whose value is not similar to the specified string value.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @param value Indicates the string value.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#unlike\n         */\n        unlike(field: string, value: string): Query;\n        /**\n         * Constructs a {@code Query} object with the and condition.\n         *\n         * <p>Multiple predicates should be connected using the and or or condition.\n         *\n         * @returns Returns the {@coed Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#and\n         */\n        and(): Query;\n        /**\n         * Constructs a {@code Query} object with the or condition.\n         *\n         * <p>Multiple predicates should be connected using the and or or condition.\n         *\n         * @returns Returns the {@coed Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#or\n         */\n        or(): Query;\n        /**\n         * Constructs a {@code Query} object to sort the query results in ascending order.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#orderByAsc\n         */\n        orderByAsc(field: string): Query;\n        /**\n         * Constructs a {@code Query} object to sort the query results in descending order.\n         *\n         * @param field Indicates the field, which must start with $. and cannot contain ^.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#orderByDesc\n         */\n        orderByDesc(field: string): Query;\n        /**\n         * Constructs a {@code Query} object to specify the number of results and the start position.\n         *\n         * @param total Indicates the number of results.\n         * @param offset Indicates the start position.\n         * @returns Returns the {@coed Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#limit\n         */\n        limit(total: number, offset: number): Query;\n        /**\n         * Creates a {@code query} condition with a specified field that is not null.\n         *\n         * @param field Indicates the specified field.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#isNotNull\n         */\n        isNotNull(field: string): Query;\n        /**\n         * Creates a query condition group with a left bracket.\n         *\n         * <p>Multiple query conditions in an {@code Query} object can be grouped. The query conditions in a group can be used as a\n         * whole to combine with other query conditions.\n         *\n         * @returns Returns the {@coed Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#beginGroup\n         */\n        beginGroup(): Query;\n        /**\n         * Creates a query condition group with a right bracket.\n         *\n         * <p>Multiple query conditions in an {@code Query} object can be grouped. The query conditions in a group can be used as a\n         * whole to combine with other query conditions.\n         *\n         * @returns Returns the {@coed Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#endGroup\n         */\n        endGroup(): Query;\n        /**\n         * Creates a query condition with a specified key prefix.\n         *\n         * @param prefix Indicates the specified key prefix.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#prefixKey\n         */\n        prefixKey(prefix: string): Query;\n        /**\n         * Sets a specified index that will be preferentially used for query.\n         *\n         * @param index Indicates the index to set.\n         * @returns Returns the {@coed Query} object.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#setSuggestIndex\n         */\n        setSuggestIndex(index: string): Query;\n        /**\n         * Add device ID key prefix.Used by {@code DeviceKVStore}.\n         *\n         * @param deviceId Specify device id to query from.\n         * @returns Returns the {@code Query} object with device ID prefix added.\n         * @throws Throws this exception if input is invalid.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#deviceId\n         */\n        deviceId(deviceId: string): Query;\n        /**\n         * Get a String that represents this {@code Query}.\n         *\n         * <p>The String would be parsed to DB query format.\n         * The String length should be no longer than 500kb.\n         *\n         * @returns String representing this {@code Query}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.Query#getSqlLike\n         */\n        getSqlLike(): string;\n    }\n    /**\n     * Represents a key-value distributed database and provides methods for adding, deleting, modifying, querying,\n     * and subscribing to distributed data.\n     *\n     * <p>You can create distributed databases of different types by {@link KVManager#getKVStore (Options, String)}\n     * with input parameter {@code Options}. Distributed database types are defined in {@code KVStoreType},\n     * including {@code SingleKVStore}.\n     *\n     *\n     * @version 1\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.SingleKVStore\n     */\n    interface KVStore {\n        /**\n         * Writes a key-value pair of the string type into the {@code KvStore} database.\n         *\n         * <p>If you do not want to synchronize this key-value pair to other devices, set the write option in the local database.\n         *\n         * @param key Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}.\n         * Spaces before and after the key will be cleared.\n         * @param value Indicates the string value, which must be less than 4 MB as a UTF-8 byte array.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#put\n         */\n        put(key: string, value: Uint8Array | string | number | boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Writes a key-value pair of the string type into the {@code KvStore} database.\n         *\n         * <p>If you do not want to synchronize this key-value pair to other devices, set the write option in the local database.\n         *\n         * @param key Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}.\n         * Spaces before and after the key will be cleared.\n         * @param value Indicates the string value, which must be less than 4 MB as a UTF-8 byte array.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#put\n         */\n        put(key: string, value: Uint8Array | string | number | boolean): Promise<void>;\n        /**\n         * Deletes the key-value pair based on a specified key.\n         *\n         * @param key Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}.\n         * Spaces before and after the key will be cleared.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and\n         * {@code DB_ERROR}, and {@code KEY_NOT_FOUND}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#delete\n         */\n        delete(key: string, callback: AsyncCallback<void>): void;\n        /**\n         * Deletes the key-value pair based on a specified key.\n         *\n         * @param key Indicates the key. The length must be less than {@code MAX_KEY_LENGTH}.\n         * Spaces before and after the key will be cleared.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and\n         * {@code DB_ERROR}, and {@code KEY_NOT_FOUND}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#delete\n         */\n        delete(key: string): Promise<void>;\n        /**\n         * Registers a {@code KvStoreObserver} for the database. When data in the distributed database changes, the callback in\n         * {@code KvStoreObserver} will be invoked.\n         *\n         * @param type Indicates the subscription type, which is defined in {@code SubscribeType}.\n         * @param listener Indicates the observer of data change events in the distributed database.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR},\n         * {@code DB_ERROR}, and {@code STORE_ALREADY_SUBSCRIBE}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#on\n         */\n        on(event: 'dataChange', type: SubscribeType, listener: Callback<ChangeNotification>): void;\n        /**\n         * Subscribe the {@code KvStore} database based on the specified subscribeType and {@code KvStoreObserver}.\n         *\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR},\n         * {@code DB_ERROR}, and {@code STORE_ALREADY_SUBSCRIBE}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#on\n         */\n        on(event: 'syncComplete', syncCallback: Callback<Array<[\n            string,\n            number\n        ]>>): void;\n        /**\n         * Unsubscribe the {@code KvStore} database based on the specified subscribeType and {@code KvStoreObserver}.\n         *\n         * @param listener Indicates the data change observer registered by {#subscribe(SubscribeType, KvStoreObserver)}.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR},\n         * {@code DB_ERROR}, and {@code STORE_ALREADY_SUBSCRIBE}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#off\n         */\n        off(event: 'dataChange', listener?: Callback<ChangeNotification>): void;\n        /**\n         * UnRegister the {@code KvStore} database synchronization callback.\n         *\n         * @param syncCallback Indicates the callback used to send the synchronization result to caller.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR},\n         * {@code DB_ERROR}, and {@code STORE_ALREADY_SUBSCRIBE}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#off\n         */\n        off(event: 'syncComplete', syncCallback?: Callback<Array<[\n            string,\n            number\n        ]>>): void;\n        /**\n         * Inserts key-value pairs into the {@code KvStore} database in batches.\n         *\n         * @param entries Indicates the key-value pairs to be inserted in batches.\n         * @throws Throws this exception if a database error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#putBatch\n         */\n        putBatch(entries: Entry[], callback: AsyncCallback<void>): void;\n        /**\n         * Inserts key-value pairs into the {@code KvStore} database in batches.\n         *\n         * @param entries Indicates the key-value pairs to be inserted in batches.\n         * @throws Throws this exception if a database error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#putBatch\n         */\n        putBatch(entries: Entry[]): Promise<void>;\n        /**\n         * Deletes key-value pairs in batches from the {@code KvStore} database.\n         *\n         * @param keys Indicates the key-value pairs to be deleted in batches.\n         * @throws Throws this exception if a database error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#deleteBatch\n         */\n        deleteBatch(keys: string[], callback: AsyncCallback<void>): void;\n        /**\n         * Deletes key-value pairs in batches from the {@code KvStore} database.\n         *\n         * @param keys Indicates the key-value pairs to be deleted in batches.\n         * @throws Throws this exception if a database error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#deleteBatch\n         */\n        deleteBatch(keys: string[]): Promise<void>;\n        /**\n         * Starts a transaction operation in the {@code KvStore} database.\n         *\n         * <p>After the database transaction is started, you can submit or roll back the operation.\n         *\n         * @throws Throws this exception if a database error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#startTransaction\n         */\n        startTransaction(callback: AsyncCallback<void>): void;\n        /**\n         * Starts a transaction operation in the {@code KvStore} database.\n         *\n         * <p>After the database transaction is started, you can submit or roll back the operation.\n         *\n         * @throws Throws this exception if a database error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#startTransaction\n         */\n        startTransaction(): Promise<void>;\n        /**\n         * Submits a transaction operation in the {@code KvStore} database.\n         *\n         * @param callback\n         * @throws Throws this exception if a database error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#commit\n         */\n        commit(callback: AsyncCallback<void>): void;\n        /**\n         * Submits a transaction operation in the {@code KvStore} database.\n         *\n         * @param callback\n         * @throws Throws this exception if a database error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#commit\n         */\n        commit(): Promise<void>;\n        /**\n         * Rolls back a transaction operation in the {@code KvStore} database.\n         *\n         * @throws Throws this exception if a database error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#rollback\n         */\n        rollback(callback: AsyncCallback<void>): void;\n        /**\n         * Rolls back a transaction operation in the {@code KvStore} database.\n         *\n         * @throws Throws this exception if a database error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#rollback\n         */\n        rollback(): Promise<void>;\n        /**\n         * Sets whether to enable synchronization.\n         *\n         * @param enabled Specifies whether to enable synchronization. The value true means to enable\n         * synchronization, and false means the opposite.\n         * @throws Throws this exception if an internal service error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#enableSync\n         */\n        enableSync(enabled: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether to enable synchronization.\n         *\n         * @param enabled Specifies whether to enable synchronization. The value true means to enable\n         * synchronization, and false means the opposite.\n         * @throws Throws this exception if an internal service error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#enableSync\n         */\n        enableSync(enabled: boolean): Promise<void>;\n        /**\n         * Sets synchronization range labels.\n         *\n         * <p>The labels determine the devices with which data will be synchronized.\n         *\n         * @param localLabels Indicates the synchronization labels of the local device.\n         * @param remoteSupportLabels Indicates the labels of the devices with which data will be synchronized.\n         * @throws Throws this exception if an internal service error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#setSyncRange\n         */\n        setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: AsyncCallback<void>): void;\n        /**\n         * Sets synchronization range labels.\n         *\n         * <p>The labels determine the devices with which data will be synchronized.\n         *\n         * @param localLabels Indicates the synchronization labels of the local device.\n         * @param remoteSupportLabels Indicates the labels of the devices with which data will be synchronized.\n         * @throws Throws this exception if an internal service error occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#setSyncRange\n         */\n        setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise<void>;\n    }\n    /**\n     * Provides methods related to single-version distributed databases.\n     *\n     * <p>To create a {@code SingleKVStore} database,\n     * you can use the {@link data.distributed.common.KVManager#getKVStore​(Options, String)} method\n     * with {@code KVStoreType} set to {@code SINGLE_VERSION} for the input parameter {@code Options}.\n     * This database synchronizes data to other databases in time sequence.\n     * The {@code SingleKVStore} database does not support\n     * synchronous transactions, or data search using snapshots.\n     *\n     * @version 1\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.SingleKVStore\n     */\n    interface SingleKVStore extends KVStore {\n        /**\n         * Obtains the {@code String} value of a specified key.\n         *\n         * @param key Indicates the key of the boolean value to be queried.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}, and {@code KEY_NOT_FOUND}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#get\n         */\n        get(key: string, callback: AsyncCallback<Uint8Array | string | boolean | number>): void;\n        /**\n         * Obtains the {@code String} value of a specified key.\n         *\n         * @param key Indicates the key of the boolean value to be queried.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}, and {@code KEY_NOT_FOUND}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#get\n         */\n        get(key: string): Promise<Uint8Array | string | boolean | number>;\n        /**\n         * Obtains all key-value pairs that match a specified key prefix.\n         *\n         * @param keyPrefix Indicates the key prefix to match.\n         * @returns Returns the list of all key-value pairs that match the specified key prefix.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getEntries\n         */\n        getEntries(keyPrefix: string, callback: AsyncCallback<Entry[]>): void;\n        /**\n         * Obtains all key-value pairs that match a specified key prefix.\n         *\n         * @param keyPrefix Indicates the key prefix to match.\n         * @returns Returns the list of all key-value pairs that match the specified key prefix.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getEntries\n         */\n        getEntries(keyPrefix: string): Promise<Entry[]>;\n        /**\n         * Obtains the list of key-value pairs matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the list of key-value pairs matching the specified {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getEntries\n         */\n        getEntries(query: Query, callback: AsyncCallback<Entry[]>): void;\n        /**\n         * Obtains the list of key-value pairs matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the list of key-value pairs matching the specified {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getEntries\n         */\n        getEntries(query: Query): Promise<Entry[]>;\n        /**\n         * Obtains the result sets with a specified prefix from a {@code KvStore} database. The {@code KvStoreResultSet} object can be used to\n         * query all key-value pairs that meet the search criteria. Each {@code KvStore} instance can have a maximum of four\n         * {@code KvStoreResultSet} objects at the same time. If you have created four objects, calling this method will return a\n         * failure. Therefore, you are advised to call the closeResultSet method to close unnecessary {@code KvStoreResultSet} objects\n         * in a timely manner.\n         *\n         * @param keyPrefix Indicates the key prefix to match.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getResultSet\n         */\n        getResultSet(keyPrefix: string, callback: AsyncCallback<KvStoreResultSet>): void;\n        /**\n         * Obtains the result sets with a specified prefix from a {@code KvStore} database. The {@code KvStoreResultSet} object can be used to\n         * query all key-value pairs that meet the search criteria. Each {@code KvStore} instance can have a maximum of four\n         * {@code KvStoreResultSet} objects at the same time. If you have created four objects, calling this method will return a\n         * failure. Therefore, you are advised to call the closeResultSet method to close unnecessary {@code KvStoreResultSet} objects\n         * in a timely manner.\n         *\n         * @param keyPrefix Indicates the key prefix to match.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getResultSet\n         */\n        getResultSet(keyPrefix: string): Promise<KvStoreResultSet>;\n        /**\n         * Obtains the {@code KvStoreResultSet} object matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getResultSet\n         */\n        getResultSet(query: Query, callback: AsyncCallback<KvStoreResultSet>): void;\n        /**\n         * Obtains the {@code KvStoreResultSet} object matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getResultSet\n         */\n        getResultSet(query: Query): Promise<KvStoreResultSet>;\n        /**\n         * Closes a {@code KvStoreResultSet} object returned by getResultSet.\n         *\n         * @param resultSet Indicates the {@code KvStoreResultSet} object to close.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#closeResultSet\n         */\n        closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback<void>): void;\n        /**\n         * Closes a {@code KvStoreResultSet} object returned by getResultSet.\n         *\n         * @param resultSet Indicates the {@code KvStoreResultSet} object to close.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#closeResultSet\n         */\n        closeResultSet(resultSet: KvStoreResultSet): Promise<void>;\n        /**\n         * Obtains the number of results matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the number of results matching the specified {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getResultSize\n         */\n        getResultSize(query: Query, callback: AsyncCallback<number>): void;\n        /**\n         * Obtains the number of results matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the number of results matching the specified {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getResultSize\n         */\n        getResultSize(query: Query): Promise<number>;\n        /**\n         * void removeDeviceData​({@link String} deviceId) throws {@link KvStoreException}\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#removeDeviceData\n         */\n        removeDeviceData(deviceId: string, callback: AsyncCallback<void>): void;\n        /**\n         * void removeDeviceData​({@link String} deviceId) throws {@link KvStoreException}\n         *\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#removeDeviceData\n         */\n        removeDeviceData(deviceId: string): Promise<void>;\n        /**\n         * Synchronize the database to the specified devices with the specified delay allowed.\n         *\n         * @param deviceIds Indicates the list of devices to which to synchronize the database.\n         * @param mode Indicates the synchronization mode. The value can be {@code PUSH}, {@code PULL}, or {@code PUSH_PULL}.\n         * @param delayMs Indicates the delay allowed for the synchronization, in milliseconds.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#sync\n         */\n        sync(deviceIds: string[], mode: SyncMode, delayMs?: number): void;\n        /**\n         * Register a {@code KvStoreObserver} for the database. When data in the distributed database changes, the callback\n         * in the {@code KvStoreObserver} will be invoked.\n         *\n         * @param type Indicates the subscription type, which is defined in {@code SubscribeType}.\n         * @param listener Indicates the observer of data change events in the distributed database.\n         * @throws Throws this exception if no {@code SingleKvStore} database is available.\n         * {@code DB_ERROR}, and {@code STORE_ALREADY_SUBSCRIBE}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#on\n         */\n        on(event: 'dataChange', type: SubscribeType, listener: Callback<ChangeNotification>): void;\n        /**\n         * Register a SingleKvStore database synchronization callback.\n         * <p> Sync result is returned through asynchronous callback.\n         *\n         * @param syncCallback Indicates the callback used to send the synchronization result to the caller.\n         * @throws Throws this exception if no {@code SingleKvStore} database is available.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#on\n         */\n        on(event: 'syncComplete', syncCallback: Callback<Array<[\n            string,\n            number\n        ]>>): void;\n        /**\n         * Unsubscribe the SingleKvStore database based on the specified subscribeType and {@code KvStoreObserver}.\n         *\n         * @param listener Indicates the data change observer registered by {#subscribe(SubscribeType, KvStoreObserver)}.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR},\n         * {@code DB_ERROR}, and {@code STORE_ALREADY_SUBSCRIBE}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#off\n         */\n        off(event: 'dataChange', listener?: Callback<ChangeNotification>): void;\n        /**\n         * UnRegister the SingleKvStore database synchronization callback.\n         *\n         * @throws Throws this exception if no {@code SingleKvStore} database is available.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#off\n         */\n        off(event: 'syncComplete', syncCallback?: Callback<Array<[\n            string,\n            number\n        ]>>): void;\n        /**\n         * Sets the default delay allowed for database synchronization\n         *\n         * @param defaultAllowedDelayMs Indicates the default delay allowed for the database synchronization, in milliseconds.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#setSyncParam\n         */\n        setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback<void>): void;\n        /**\n         * Sets the default delay allowed for database synchronization\n         *\n         * @param defaultAllowedDelayMs Indicates the default delay allowed for the database synchronization, in milliseconds.\n         * @throws Throws this exception if any of the following errors occurs:{@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#setSyncParam\n         */\n        setSyncParam(defaultAllowedDelayMs: number): Promise<void>;\n        /**\n         * Get the security level of the database.\n         *\n         * @returns SecurityLevel {@code SecurityLevel} the security level of the database.\n         * @throws Throws this exception if any of the following errors occurs:{@code SERVER_UNAVAILABLE},\n         * {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getSecurityLevel\n         */\n        getSecurityLevel(callback: AsyncCallback<SecurityLevel>): void;\n        /**\n         * Get the security level of the database.\n         *\n         * @returns SecurityLevel {@code SecurityLevel} the security level of the database.\n         * @throws Throws this exception if any of the following errors occurs:{@code SERVER_UNAVAILABLE},\n         * {@code IPC_ERROR}, and {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.SingleKVStore#getSecurityLevel\n         */\n        getSecurityLevel(): Promise<SecurityLevel>;\n    }\n    /**\n     * Manages distributed data by device in a distributed system.\n     *\n     * <p>To create a {@code DeviceKVStore} database, you can use the {@link data.distributed.common.KVManager.getKvStore(Options, String)}\n     * method with {@code KvStoreType} set to {@code DEVICE_COLLABORATION} for the input parameter Options. This database manages distributed\n     * data by device, and cannot modify data synchronized from remote devices. When an application writes a key-value pair entry\n     * into the database, the system automatically adds the ID of the device running the application to the key.\n     *\n     * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.DeviceKVStore\n     */\n    interface DeviceKVStore extends KVStore {\n        /**\n         * Obtains the {@code String} value matching a specified device ID and key.\n         *\n         * @param deviceId Indicates the device to be queried.\n         * @param key Indicates the key of the value to be queried.\n         * @returns Returns the value matching the given criteria.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}, and {@code KEY_NOT_FOUND}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#get\n         */\n        get(deviceId: string, key: string, callback: AsyncCallback<boolean | string | number | Uint8Array>): void;\n        /**\n         * Obtains the {@code String} value matching a specified device ID and key.\n         *\n         * @param deviceId Indicates the device to be queried.\n         * @param key Indicates the key of the value to be queried.\n         * @returns Returns the value matching the given criteria.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}, and {@code KEY_NOT_FOUND}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#get\n         */\n        get(deviceId: string, key: string): Promise<boolean | string | number | Uint8Array>;\n        /**\n         * Obtains all key-value pairs matching a specified device ID and key prefix.\n         *\n         * @param deviceId Identifies the device whose data is to be queried.\n         * @param keyPrefix Indicates the key prefix to match.\n         * @returns Returns the list of all key-value pairs meeting the given criteria.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getEntries\n         */\n        getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback<Entry[]>): void;\n        /**\n         * Obtains all key-value pairs matching a specified device ID and key prefix.\n         *\n         * @param deviceId Identifies the device whose data is to be queried.\n         * @param keyPrefix Indicates the key prefix to match.\n         * @returns Returns the list of all key-value pairs meeting the given criteria.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getEntries\n         */\n        getEntries(deviceId: string, keyPrefix: string): Promise<Entry[]>;\n        /**\n         * Obtains the list of key-value pairs matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the list of key-value pairs matching the specified {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getEntries\n         */\n        getEntries(query: Query, callback: AsyncCallback<Entry[]>): void;\n        /**\n         * Obtains the list of key-value pairs matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the list of key-value pairs matching the specified {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getEntries\n         */\n        getEntries(query: Query): Promise<Entry[]>;\n        /**\n         * Obtains the list of key-value pairs matching a specified device ID and {@code Query} object.\n         *\n         * @param deviceId Indicates the ID of the device to which the key-value pairs belong.\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the list of key-value pairs matching the specified {@code Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getEntries\n         */\n        getEntries(deviceId: string, query: Query, callback: AsyncCallback<Entry[]>): void;\n        /**\n         * Obtains the list of key-value pairs matching a specified device ID and {@code Query} object.\n         *\n         * @param deviceId Indicates the ID of the device to which the key-value pairs belong.\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the list of key-value pairs matching the specified {@code Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getEntries\n         */\n        getEntries(deviceId: string, query: Query): Promise<Entry[]>;\n        /**\n         * Obtains the {@code KvStoreResultSet} object matching the specified device ID and key prefix.\n         *\n         * <p>The {@code KvStoreResultSet} object can be used to query all key-value pairs that meet the search criteria. Each {@code KvStore}\n         * instance can have a maximum of four {@code KvStoreResultSet} objects at the same time. If you have created four objects,\n         * calling this method will return a failure. Therefore, you are advised to call the closeResultSet method to close unnecessary\n         * {@code KvStoreResultSet} objects in a timely manner.\n         *\n         * @param deviceId Identifies the device whose data is to be queried.\n         * @param keyPrefix Indicates the key prefix to match.\n         * @returns Returns the {@code KvStoreResultSet} objects.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getResultSet\n         */\n        getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback<KvStoreResultSet>): void;\n        /**\n         * Obtains the {@code KvStoreResultSet} object matching the specified device ID and key prefix.\n         *\n         * <p>The {@code KvStoreResultSet} object can be used to query all key-value pairs that meet the search criteria. Each {@code KvStore}\n         * instance can have a maximum of four {@code KvStoreResultSet} objects at the same time. If you have created four objects,\n         * calling this method will return a failure. Therefore, you are advised to call the closeResultSet method to close unnecessary\n         * {@code KvStoreResultSet} objects in a timely manner.\n         *\n         * @param deviceId Identifies the device whose data is to be queried.\n         * @param keyPrefix Indicates the key prefix to match.\n         * @returns Returns the {@code KvStoreResultSet} objects.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getResultSet\n         */\n        getResultSet(deviceId: string, keyPrefix: string): Promise<KvStoreResultSet>;\n        /**\n         * Obtains the {@code KvStoreResultSet} object matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the {@code KvStoreResultSet} object matching the specified {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getResultSet\n         */\n        getResultSet(query: Query, callback: AsyncCallback<KvStoreResultSet>): void;\n        /**\n         * Obtains the {@code KvStoreResultSet} object matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the {@code KvStoreResultSet} object matching the specified {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getResultSet\n         */\n        getResultSet(query: Query): Promise<KvStoreResultSet>;\n        /**\n         * Obtains the {@code KvStoreResultSet} object matching a specified device ID and {@code Query} object.\n         *\n         * @param deviceId Indicates the ID of the device to which the {@code KvStoreResultSet} object belongs.\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the {@code KvStoreResultSet} object matching the specified {@code Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getResultSet\n         */\n        getResultSet(deviceId: string, query: Query, callback: AsyncCallback<KvStoreResultSet>): void;\n        /**\n         * Obtains the {@code KvStoreResultSet} object matching a specified device ID and {@code Query} object.\n         *\n         * @param deviceId Indicates the ID of the device to which the {@code KvStoreResultSet} object belongs.\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the {@code KvStoreResultSet} object matching the specified {@code Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getResultSet\n         */\n        getResultSet(deviceId: string, query: Query): Promise<KvStoreResultSet>;\n        /**\n         * Closes a {@code KvStoreResultSet} object returned by getResultSet.\n         *\n         * @param resultSet Indicates the {@code KvStoreResultSet} object to close.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#closeResultSet\n         */\n        closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback<void>): void;\n        /**\n         * Closes a {@code KvStoreResultSet} object returned by getResultSet.\n         *\n         * @param resultSet Indicates the {@code KvStoreResultSet} object to close.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#closeResultSet\n         */\n        closeResultSet(resultSet: KvStoreResultSet): Promise<void>;\n        /**\n         * Obtains the number of results matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the number of results matching the specified {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getResultSize\n         */\n        getResultSize(query: Query, callback: AsyncCallback<number>): void;\n        /**\n         * Obtains the number of results matching the specified {@code Query} object.\n         *\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the number of results matching the specified {@code Query} object.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getResultSize\n         */\n        getResultSize(query: Query): Promise<number>;\n        /**\n         * Obtains the number of results matching a specified device ID and {@code Query} object.\n         *\n         * @param deviceId Indicates the ID of the device to which the results belong.\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the number of results matching the specified {@code Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getResultSize\n         */\n        getResultSize(deviceId: string, query: Query, callback: AsyncCallback<number>): void;\n        /**\n         * Obtains the number of results matching a specified device ID and {@code Query} object.\n         *\n         * @param deviceId Indicates the ID of the device to which the results belong.\n         * @param query Indicates the {@code Query} object.\n         * @returns Returns the number of results matching the specified {@code Query} object.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#getResultSize\n         */\n        getResultSize(deviceId: string, query: Query): Promise<number>;\n        /**\n         * Removes data of a specified device from the current database. This method is used to remove only the data\n         * synchronized from remote devices. This operation does not synchronize data to other databases or affect\n         * subsequent data synchronization.\n         *\n         * @param deviceId Identifies the device whose data is to be removed. The value cannot be the current device ID.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#removeDeviceData\n         */\n        removeDeviceData(deviceId: string, callback: AsyncCallback<void>): void;\n        /**\n         * Removes data of a specified device from the current database. This method is used to remove only the data\n         * synchronized from remote devices. This operation does not synchronize data to other databases or affect\n         * subsequent data synchronization.\n         *\n         * @param deviceId Identifies the device whose data is to be removed. The value cannot be the current device ID.\n         * @throws Throws this exception if any of the following errors occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR}, {@code DB_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#removeDeviceData\n         */\n        removeDeviceData(deviceId: string): Promise<void>;\n        /**\n         * Synchronize the {@code DeviceKVStore} databases.\n         *\n         * <p>This method returns immediately and sync result will be returned through asynchronous callback.\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC\n         * @param deviceIds Indicates the list of IDs of devices whose\n         * @param delayMs Indicates the delay allowed for the synchronization, in milliseconds.\n         * {@code DeviceKVStore} databases are to be synchronized.\n         * @param mode Indicates the synchronization mode, {@code PUSH}, {@code PULL}, or\n         * {@code PUSH_PULL}.\n         * @throws Throws this exception if no DeviceKVStore database is available.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#sync\n         */\n        sync(deviceIds: string[], mode: SyncMode, delayMs?: number): void;\n        /**\n         * Register a {@code KvStoreObserver} for the database. When data in the distributed database changes, the\n         * callback in the {@code KvStoreObserver} will be invoked.\n         *\n         * @param type Indicates the subscription type, which is defined in {@code SubscribeType}.\n         * @param listener Indicates the observer of data change events in the distributed database.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR},\n         * {@code DB_ERROR}, and {@code STORE_ALREADY_SUBSCRIBE}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#on\n         */\n        on(event: 'dataChange', type: SubscribeType, listener: Callback<ChangeNotification>): void;\n        /**\n         * Register a DeviceKVStore database synchronization callback.\n         *\n         * <p>Sync result is returned through asynchronous callback.\n         *\n         * @param syncCallback Indicates the callback used to send the synchronization result to the caller.\n         * @throws Throws this exception if no DeviceKVStore database is available.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#on\n         */\n        on(event: 'syncComplete', syncCallback: Callback<Array<[\n            string,\n            number\n        ]>>): void;\n        /**\n         * Unsubscribe the DeviceKVStore database based on the specified subscribeType and {@code KvStoreObserver}.\n         *\n         * @param listener Indicates the data change observer registered by {#subscribe(SubscribeType, KvStoreObserver)}.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code IPC_ERROR},\n         * {@code DB_ERROR}, and {@code STORE_ALREADY_SUBSCRIBE}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#off\n         */\n        off(event: 'dataChange', listener?: Callback<ChangeNotification>): void;\n        /**\n         * UnRegister the DeviceKVStore database synchronization callback.\n         *\n         * @throws Throws this exception if no DeviceKVStore database is available.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.DeviceKVStore#off\n         */\n        off(event: 'syncComplete', syncCallback?: Callback<Array<[\n            string,\n            number\n        ]>>): void;\n    }\n    /**\n     * Creates a {@link KVManager} instance based on the configuration information.\n     *\n     * <p>You must pass {@link KVManagerConfig} to provide configuration information\n     * for creating the {@link KVManager} instance.\n     *\n     * @param config Indicates the {@link KVStore} configuration information,\n     * including the user information and package name.\n     * @returns Returns the {@code KVManager} instance.\n     * @throws Throws exception if input is invalid.\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore#createKVManager\n     */\n    function createKVManager(config: KVManagerConfig, callback: AsyncCallback<KVManager>): void;\n    /**\n     * Creates a {@link KVManager} instance based on the configuration information.\n     *\n     * <p>You must pass {@link KVManagerConfig} to provide configuration information\n     * for creating the {@link KVManager} instance.\n     *\n     * @param config Indicates the {@link KVStore} configuration information,\n     * including the user information and package name.\n     * @returns Returns the {@code KVManager} instance.\n     * @throws Throws exception if input is invalid.\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore#createKVManager\n     */\n    function createKVManager(config: KVManagerConfig): Promise<KVManager>;\n    /**\n     * Provides interfaces to manage a {@code KVStore} database, including obtaining, closing, and deleting the {@code KVStore}.\n     *\n     * @version 1\n     * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.data.distributedKVStore.KVManager\n     */\n    interface KVManager {\n        /**\n         * Creates and obtains a {@code KVStore} database by specifying {@code Options} and {@code storeId}.\n         *\n         * @param options Indicates the options used for creating and obtaining the {@code KVStore} database,\n         * including {@code isCreateIfMissing}, {@code isEncrypt}, and {@code KVStoreType}.\n         * @param storeId Identifies the {@code KVStore} database.\n         * The value of this parameter must be unique for the same application,\n         * and different applications can share the same value.\n         * @returns Returns a {@code KVStore}, or {@code SingleKVStore}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVManager#getKVStore\n         */\n        getKVStore<T extends KVStore>(storeId: string, options: Options): Promise<T>;\n        /**\n         * Creates and obtains a {@code KVStore} database by specifying {@code Options} and {@code storeId}.\n         *\n         * @param options Indicates the options used for creating and obtaining the {@code KVStore} database,\n         * including {@code isCreateIfMissing}, {@code isEncrypt}, and {@code KVStoreType}.\n         * @param storeId Identifies the {@code KVStore} database.\n         * The value of this parameter must be unique for the same application,\n         * and different applications can share the same value.\n         * @returns Returns a {@code KVStore}, or {@code SingleKVStore}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVManager#getKVStore\n         */\n        getKVStore<T extends KVStore>(storeId: string, options: Options, callback: AsyncCallback<T>): void;\n        /**\n         * Closes the {@code KvStore} database.\n         *\n         * <p>Warning: This method is not thread-safe. If you call this method to stop a KvStore database that is running, your\n         * thread may crash.\n         *\n         * <p>The {@code KvStore} database to close must be an object created by using the {@code getKvStore} method. Before using this\n         * method, release the resources created for the database, for example, {@code KvStoreResultSet} for {@code SingleKvStore},\n         * otherwise closing the database will fail. If you are attempting to close a database that is already closed, an error\n         * will be returned.\n         *\n         * @param kvStore Indicates the {@code KvStore} database to close.\n         * @throws Throws this exception if any of the following errors\n         * occurs:{@code INVALID_ARGUMENT}, {@code SERVER_UNAVAILABLE},\n         * {@code STORE_NOT_OPEN}, {@code STORE_NOT_FOUND}, {@code DB_ERROR},\n         * {@code PERMISSION_DENIED}, and {@code IPC_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVManager#closeKVStore\n         */\n        closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCallback<void>): void;\n        /**\n         * Closes the {@code KvStore} database.\n         *\n         * <p>Warning: This method is not thread-safe. If you call this method to stop a KvStore database that is running, your\n         * thread may crash.\n         *\n         * <p>The {@code KvStore} database to close must be an object created by using the {@code getKvStore} method. Before using this\n         * method, release the resources created for the database, for example, {@code KvStoreResultSet} for {@code SingleKvStore},\n         * otherwise closing the database will fail. If you are attempting to close a database that is already closed, an error\n         * will be returned.\n         *\n         * @param kvStore Indicates the {@code KvStore} database to close.\n         * @throws Throws this exception if any of the following errors\n         * occurs:{@code INVALID_ARGUMENT}, {@code SERVER_UNAVAILABLE},\n         * {@code STORE_NOT_OPEN}, {@code STORE_NOT_FOUND}, {@code DB_ERROR},\n         * {@code PERMISSION_DENIED}, and {@code IPC_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVManager#closeKVStore\n         */\n        closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise<void>;\n        /**\n         * Deletes the {@code KvStore} database identified by storeId.\n         *\n         * <p>Before using this method, close all {@code KvStore} instances in use that are identified by the same storeId.\n         *\n         * <p>You can use this method to delete a {@code KvStore} database not in use. After the database is deleted, all its data will be\n         * lost.\n         *\n         * @param storeId Identifies the {@code KvStore} database to delete.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code STORE_NOT_FOUND},\n         * {@code DB_ERROR}, {@code PERMISSION_DENIED}, and {@code IPC_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVManager#deleteKVStore\n         */\n        deleteKVStore(appId: string, storeId: string, callback: AsyncCallback<void>): void;\n        /**\n         * Deletes the {@code KvStore} database identified by storeId.\n         *\n         * <p>Before using this method, close all {@code KvStore} instances in use that are identified by the same storeId.\n         *\n         * <p>You can use this method to delete a {@code KvStore} database not in use. After the database is deleted, all its data will be\n         * lost.\n         *\n         * @param storeId Identifies the {@code KvStore} database to delete.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code INVALID_ARGUMENT},\n         * {@code SERVER_UNAVAILABLE}, {@code STORE_NOT_FOUND},\n         * {@code DB_ERROR}, {@code PERMISSION_DENIED}, and {@code IPC_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVManager#deleteKVStore\n         */\n        deleteKVStore(appId: string, storeId: string): Promise<void>;\n        /**\n         * Obtains the storeId of all {@code KvStore} databases that are created by using the {@code getKvStore} method and not deleted by\n         * calling the {@code deleteKvStore} method.\n         *\n         * @returns Returns the storeId of all created {@code KvStore} databases.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code DB_ERROR},\n         * {@code PERMISSION_DENIED}, and {@code IPC_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVManager#getAllKVStoreId\n         */\n        getAllKVStoreId(appId: string, callback: AsyncCallback<string[]>): void;\n        /**\n         * Obtains the storeId of all {@code KvStore} databases that are created by using the {@code getKvStore} method and not deleted by\n         * calling the {@code deleteKvStore} method.\n         *\n         * @returns Returns the storeId of all created {@code KvStore} databases.\n         * @throws Throws this exception if any of the following errors\n         * occurs: {@code SERVER_UNAVAILABLE}, {@code DB_ERROR},\n         * {@code PERMISSION_DENIED}, and {@code IPC_ERROR}.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVManager#getAllKVStoreId\n         */\n        getAllKVStoreId(appId: string): Promise<string[]>;\n        /**\n         * register DeviceChangeCallback to get notification when device's status changed\n         *\n         * @param deathCallback device change callback {@code DeviceChangeCallback}\n         * @throws    exception maybe occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVManager#on\n         */\n        on(event: 'distributedDataServiceDie', deathCallback: Callback<void>): void;\n        /**\n         * unRegister DeviceChangeCallback and can not receive notification\n         *\n         * @param deathCallback device change callback {@code DeviceChangeCallback} which has been registered.\n         * @throws exception maybe occurs.\n         * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.data.distributedKVStore.KVManager#off\n         */\n        off(event: 'distributedDataServiceDie', deathCallback?: Callback<void>): void;\n    }\n}\n/**\n * Providers interfaces to creat a {@link KVManager} instance.\n * @syscap SystemCapability.DistributedDataManager.KVStore.DistributedKVStore\n * @since 7\n * @deprecated since 9\n */\nexport default distributedData;\n",
}
export default FILE;